package com.xiaodu.acer.phoneplay.di.module;

import com.xiaodu.acer.phoneplay.data.LoginModel;
import com.xiaodu.acer.phoneplay.data.http.ApiService;
import com.xiaodu.acer.phoneplay.presenter.contract.LoginContract;

import dagger.Module;
import dagger.Provides;

/**
 * @author 小杜
 *         邮箱:m15701207383@163.com
 * @version V1.0
 * @Description: ${TODO}(用一句话描述该文件做什么)
 * @date 2018/1/10 13:35
 */
@Module
public class LoginModule {

    private LoginContract.View mView;

    public LoginModule(LoginContract.View view) {
        this.mView = view;
    }

    @Provides
    public LoginContract.View provideLoginView() {
        return mView;
    }

    @Provides
    public LoginContract.Model provideLoginModel(ApiService service) {
        return new LoginModel(service);
    }

}
